



<div class="searchbox">
    <div class="searchbox_box">
        <div  class="searchbox_text"> 开始时间：</div>
        <div  class="searchbox_input"> <input type="text" class="datapick datapick1"   name="date1"> </div>
    </div>

    <div class="searchbox_box">
        <div  class="searchbox_text"> 结束时间：</div>
        <div  class="searchbox_input"><input type="text"   name="date2" class="datapick datapick2" > </div>
    </div>

    <!--    <div class="searchbox_box">
            <div  class="searchbox_text"> 商铺名：</div>
            <div  class="searchbox_input"><input type="text" > </div>
        </div>

        <div class="searchbox_box">
            <div  class="searchbox_text"> 订单号：</div>
            <div  class="searchbox_input"><input type="text" > </div>
        </div>-->
    <div class="searchbox_box">
        <div class="search_button   am-btn am-btn-secondary "> <img src="<?php echo base_url();?>/public/assets/image/chazhao.png">查询 </div>
    </div>
    <!--<div class="searchbox_box">
        <div class="search_button am-btn am-btn-secondary "><img src="<?php /*echo base_url();*/?>/public/assets/image/daochu.png">导出数据 </div>
    </div>-->

</div>


<div class="fbneirong">




            <table width="100%" class="am-table am-table-radius am-table-striped am-table-hover">
                <thead>
                <tr class="am-success">
                    <th class="table-check"><input type="checkbox" /></th>

                    <th class="table-id">ID</th>
                    <th class="table-type">创建时间</th>
                    <th class="table-type">充值金额</th>
                    <th class="table-author am-hide-sm-only">转账姓名</th>
                    <th class="table-author am-hide-sm-only">审核状态</th>
                    <th class="table-title">备注</th>
                </tr>
                </thead>
                <tbody class="impowdith">




                </tbody>
            </table>

            <!--  <div class="am-btn-group am-btn-group-xs">
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
              </div>-->



            <div id="Pagination" style="margin:20px auto" style="display:none"></div>

            <!--  <ul class="am-pagination am-fr">


              </ul>-->




            <hr />



        <!--  <div class="am-btn-group am-btn-group-xs">
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
          </div>-->



        <div id="Pagination" style="margin:20px auto" style="display:none"></div>

        <!--  <ul class="am-pagination am-fr">


          </ul>-->




        <hr />





</div>



</div>
</div>
</div>

<div class="foods">
    <ul>
        版权所有@2019.
    </ul>
    <dl>
        <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
    </dl>
</div>
</body>
</html>


<script>







        var on_request=false;
        var type=1;
        var page=1;



        laydate.render({
            elem: '.datapick1'
        });
        laydate.render({
            elem: '.datapick2'
        });
        $(".search_button").click(function () {
            getpaylist();
        });



        function setlisthtnml(data) {
            var html = '';
            if(data.list.length>0){
                $.each(data.list, function (key, value) {
                    html += ' <tr>' +
                        '<td><input type="checkbox" /></td>\n' +
                        ' <td>'+  value.id+'</td>\n' +
                        ' <td>'+value.addtime+'</td>\n' +
                        '  <td>'+value.money+'</td>\n' +
                        '                    <td class="am-hide-sm-only">'+value.money_maker+'</td>\n' +
                        '                    <td class="am-hide-sm-only">'+value.status+'</td>\n' +
                        '  <td>'+value.remark+'</td>\n' +
                        '                </tr>';
                });
                $(".impowdith").html(html);
                $('#Pagination').show();
            }else{
               html += '<div style="width:100%;text-align:center;">暂无数据</div>';
                $(".impowdith").html(html);
                $('#Pagination').hide();
            }
        }


        getpaylist();
        function getpaylist() {
            var url = "<?php echo base_url(); ?>/Business/getpaylist";

            var date1=$("input[name='date1']").val();
            var date2=$("input[name='date2']").val();

            var postdata = {
                'date1': date1,
                'date2': date2,
                'page': page
            };
            $.post(url, postdata, function (data) {
                on_request = false;
                setlisthtnml(data);
                setPagination("Pagination", data.count, page, data.epage, function (clickPage) {
                    page = parseInt(clickPage) + 1;
                    getpaylist();
                });
            },'json');

        }






    </script>









